﻿using PermissionManager.BLL;
using PermissionManager.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;

namespace PermissionManager.WebApi.Controllers
{
    public class MenuController : ApiController
    {
        private MenuAPIService menuService = new MenuAPIService();
        // GET: api/Menu

        public List<Menu> Get(int userId)
        {
            return menuService.GetMenusByUserId(userId);            
        }

       
    }
}
